reindex
version 2.0.0 (November 10th, .2001)
--

introduction.
"reindex" rewrites the chosen attributes to the specified file(s), which adds the attribute to an existing BFS index.
Do you ever missed any files in your queries when using a recently added attribute? BFS does not care about "old" files after you add a new index. Using "reindex" you don't need to copy those files to another place any longer to let them appear in this newly created index.

disclaimer.
"reindex" is copyrighted ©2001 by pinc Software. All Rights Reserved.
You may freely use this tool as is. No warranty or liability is given on any problems you might have with it. 

installation.
You don't really have to install "reindex"; just move it to a directory in you path - 
e.g. /boot/home/config/bin is well suited for this purpose.

usage.
You use "reindex" with the following syntax:

	reindex [-rvf] attr <list of filenames and/or directories>

	-r	enter directories recursively
	-v	verbose output
	-f	treats "attr" as path to a volume, and recreates all indices from that volume
		to the list of files. The indices will automatically be created on the devices of the
		given files, if they didn't exist yet.

If you are not using the -f option, "attr" is the attribute you want to rewrite - using the asterisk in this name, you can rewrite multiple attributes at once, e.g. "Audio:*".
If the index doesn't exist yet, it will be created for you.

known issues.
Due to a bug in BFS, there must be two (or more) files in the index when using "reindex" on a file. BFS seems to delete the index if there is only one file in it. To work around this bug, "reindex" creates two temporary files and copies the attributes of all files processed into these. Two temporary files are needed to correctly handle files with the same attribute contents.
To let this work as expected, you should call "reindex" from the volume to re-index.

history.
version 1.0.0  (March 7th, 2001)
	- initial release

version 2.0.0  (November 10th, 2001)
	- indices are now created automatically if they don't exist
	- added -f option
	- there are now two temporary files needed for duplicate attribute entries
	- every processed file now writes its attributes to the temporary file

author.
"reindex" is written by Axel Dörfler <axeld@pinc-software.de>.
visit: www.pinc-software.de

Have fun.
